package com.example.fengyuwuzu2.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import com.example.fengyuwuzu2.http.bean.News;
import com.example.fengyuwuzu2.http.repository.NewsRepository;

public class NewsViewModel {
    private final NewsRepository mNewsRepository;
    private final MutableLiveData<News> mNewsLiveData = new MutableLiveData<>();

    public NewsViewModel() {
        mNewsRepository = new NewsRepository();
    }
    public LiveData<News> getLiveData() {
        return mNewsLiveData;
    }


}
